#ifndef __TRIM_H__
#define __TRIM_H__

#include <string>

namespace tools
{

/**
 * \brief ltrim cuts off all leading spaces in a string
 */
void ltrim(std::string &str);

/**
 * \brief rtrim cuts off all trailing spaces and linebreaks in a string
 */
void rtrim(std::string &str);

/**
 * \brief this is a combination of ltrim and rtrim. First ltrim is called, then rtrim
 */
void trim(std::string &str);

}

#endif // __TRIM_H__
